package json;

import java.util.ArrayList;
import java.util.List;

public class testnode {

	public static void main(String[] args) {
		Recursion r = new Recursion();
		Node node1 = new Node(1,0);
		Node node2 = new Node(2,1);
		Node node3 = new Node(3,1);
		Node node4 = new Node(4,2);
		Node node5 = new Node(5,2);
		Node node6 = new Node(6,2);
		Node node7 = new Node(7,6);
		Node node8 = new Node(8,6);
		List nodeList = new ArrayList();
		nodeList.add(node1);
		nodeList.add(node2);
		nodeList.add(node3);
		nodeList.add(node4);
		nodeList.add(node5);
		nodeList.add(node6);
		nodeList.add(node7);
		nodeList.add(node8);
		r.recursionFn(nodeList,node1);
		System.out.println(r.modifyStr(r.returnStr.toString()));
	}

}
